package com.leyou.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.leyou.pojo.TbUser;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author leyou
 * @since 2020-02-29
 */
public interface TbUserMapper extends BaseMapper<TbUser> {

    @Select("SELECT * FROM `tb_user` where username = #{username}")
    TbUser getUserByUsername(String username);
}
